class User < ActiveRecord::Base
   validates :userid, presence: true, uniqueness: true, length: { maximum:4 }
   validates :username, presence: true
   validates :password, presence: true, length: { maximum:8 }
   validates :admin, presence: true
end
